package com.ruoyi.http.controller;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.http.domain.Http;
import com.ruoyi.http.domain.WeChat00300T;
import com.ruoyi.http.domain.WeChat01000T;
import com.ruoyi.http.domain.WeChat01100T;
import com.ruoyi.http.service.IWeChatTService;
import com.ruoyi.unit.domain.HouseUnitT;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/http/weChat01100")
public class WeChat01100 extends BaseController {
    @Autowired
    private IWeChatTService weChatTService;
    @GetMapping("/weChat")
    public AjaxResult weChat(WeChat01100T weChat01100T) {
        List<WeChat01100T> list = weChatTService.getGroupByArea(weChat01100T);
        return AjaxResult.success(list);
    }
//    public AjaxResult add(@RequestBody HouseUnitT houseUnitT)
//    {
//        houseUnitT.setCreater(getUsername());
//        return toAjax(houseUnitTService.insertHouseUnitT(houseUnitT));
//    }
}